package com.yuexunit.account.action.v2.model;

import com.yuexunit.web.annotation.Parameter;


/**
 * @author wangjinshui
 */
public class Operation {
	@Parameter(description="权限代码")
	private String operationCode;
	
	@Parameter(description="权限名称")
	private String operationName;
	
	@Parameter(description="1-角色拥有该权限；0-角色没有该权限")
	private Integer owned;

	public String getOperationCode() {
		return operationCode;
	}

	public void setOperationCode(String operationCode) {
		this.operationCode = operationCode;
	}

	public String getOperationName() {
		return operationName;
	}

	public void setOperationName(String operationName) {
		this.operationName = operationName;
	}

	public Integer getOwned() {
		return owned;
	}

	public void setOwned(Integer owned) {
		this.owned = owned;
	}
	

	
	@Override
	public String toString() {
		StringBuffer result = new StringBuffer();
		
		result.append(getClass().getName())
			.append(": operationCode='").append(operationCode).append("'")
			.append(", operationName='").append(operationName).append("'")
			.append(", owned=").append(owned)
			;
		
		return result.toString();
	}
}
